package cn.lctvu.boot.controller;


import cn.lctvu.boot.service.IDocService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Andy
 * @since 2022-05-20 11:11:50
 */
@RestController
@RequestMapping("/doc")
public class DocController {
    @Autowired
    IDocService service;

    @RequestMapping("query")
    public ResponseEntity query() {
        return new ResponseEntity(service.list(), HttpStatus.OK);
    }
}
